All Packages Class Hierarchy This Package Previous Next Index
Interface sun.servlet.ServletConnection
- public interface ServletConnection
This interface is used to provide information to a servlet about the
connection it is being invoked on.
-
getInputStream()
- Returns an input stream for reading from the connection.
-
getOutputStream()
- Returns an output stream for writing to the connection.
-
getRealPath(String)
- Returns the specified path translated to a real path.
-
getRemoteAddr()
- Returns the IP address of the agent that sent the request.
-
getRemoteHost()
-
Returns the fully qualified host name of the agent that sent the
request.
-
getServerName()
- Returns the host name of the server that received the request.
-
getServerPort()
- Returns the port number on which this request was received.
getServerName
public abstract String getServerName()
- Returns the host name of the server that received the request.
getServerPort
public abstract int getServerPort()
- Returns the port number on which this request was received.
getRemoteHost
public abstract String getRemoteHost()
- Returns the fully qualified host name of the agent that sent the
request.
getRemoteAddr
public abstract String getRemoteAddr()
- Returns the IP address of the agent that sent the request.
getRealPath
public abstract String getRealPath(String path)
- Returns the specified path translated to a real path.
getInputStream
public abstract InputStream getInputStream() throws IOException
- Returns an input stream for reading from the connection.
getOutputStream
public abstract OutputStream getOutputStream() throws IOException
- Returns an output stream for writing to the connection.
All Packages Class Hierarchy This Package Previous Next Index